|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectSimpleBehaviour
rolesystem.jade.agents.WrapperBehaviour
public class WrapperBehaviour
This is the behaviour for agents of rolesystem, which acts as a wrapper layer. An agent of rolesystem has to construct an instance of this behaviour and add it to its list of behaviours. Such agent must provide an instance implementing the interface SubjectLayer, that represents the subject actually participating in rolesystem.
| Constructor Summary | |
|---|---|
WrapperBehaviour(Agent agent,
SubjectLayer subject,
Behaviour nextBehaviour)
|
|
| Method Summary | |
|---|---|
void |
action()
|
boolean |
done()
|
int |
onEnd()
|
void |
onStart()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WrapperBehaviour(Agent agent,
SubjectLayer subject,
Behaviour nextBehaviour)
agent - Agent owner of this behaviour.subject - Subject layer of the agent, actually participating
in rolesystem.nextBehaviour - Behaviour to add when the SubjectLayer
has finished its job.| Method Detail |
|---|
public void onStart()
public int onEnd()
public void action()
public boolean done()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||